#ifndef CLICKEDLABEL_H
#define CLICKEDLABEL_H

#include <QLabel>
#include "global.h"

class ClickedLabel : public QLabel
{
    Q_OBJECT
public:
    ClickedLabel(QWidget * parent=nullptr);
    virtual void enterEvent(QEnterEvent *event);
    virtual void leaveEvent(QEvent *event);
    virtual void mousePressEvent(QMouseEvent *event);
    void SetState(QString normal="", QString hover="", QString press="",
                  QString select="", QString select_hover="", QString select_press="");

     ClickLbState GetCurState();
protected:


private:
    QString normal_;
    QString normal_hover_;
    QString normal_press_;


    QString selected_;
    QString selected_hover_;
    QString selected_press_;

    ClickLbState curstate_;

signals:
    void clicked();
};

#endif // CLICKEDLABEL_H
